package com.han.factory.after.simple_factory;


/**
 * @ClassName CoffeeStore
 * @Description 描述该类的功能
 * @Author duoduo Han
 * @Date 2024/6/4 10:14
 */
public class CoffeeStore {
    public Coffee orderCoffee(String type) {
        Coffee coffee = SimpleCoffeeFactory.createCoffee(type);
        //加配料
        coffee.addSugar();
        coffee.addMilk();

        return coffee;

    }
}
